package eu.carbones.conf;

import java.io.IOException;

/*
 * Reads and returns values from the carbones.properties file
 */

import java.io.InputStream;
import java.util.Properties;
public class ConfigReader {
	
	public static String CONFIG_FILE = "carbones-location.properties";
	
	public static String getProperty(String key) throws IOException{
		InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(CONFIG_FILE);
		Properties conf = new Properties();
		conf.load(stream);
		return conf.getProperty(key);
	}
}
